//
//  TestDesTableCell.m
//  YeeShopProject
//
//  Created by Yee on 2017/6/19.
//  Copyright © 2017年 CoderYee. All rights reserved.
//

#import "TestDesTableCell.h"

@implementation TestDesTableCell

-(void)addOwnView{
    
    [super addOwnView];
    
    _iconView=[[UIImageView alloc] init];
    [self.contentView addSubview:_iconView];
    [_iconView setImage:[UIImage imageNamed:@"shangcheng_icon_xuanzhong"]];
    
    [_iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).with.offset(5);
        make.left.equalTo(self.contentView).with.offset(15);

        make.height.width.mas_equalTo(15);
    }];
    
    _textLable=[[UILabel alloc] init];
    _textLable.textColor=[UIColor colorWithString:@"#f6ab00"];
    _textLable.text=@"多一点宽容，多一点包容，多一点理解，多一点换位思考";
    [self.contentView addSubview:_textLable];
    _textLable.numberOfLines=0;
    [_textLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).with.offset(5);
        make.left.equalTo(_iconView.mas_right).offset(5.0f);
        make.right.equalTo(self.contentView).with.offset(-15);
    }];
}

@end
